
#include "iostream"
#include "vector"
#include "unordered_map"
#include "algorithm"
#include "string"

class Solution{
public:
};

bool is_huiwen_str(std::string &s){
    for(int i=0;i<s.size()/2;i++){
        if(s[i]!=s[s.size()-i-1]){
            return false;
        }
    }
    return true;
}

int main() {
    int a;
    int cnt=0;
    std::string  s;
    while(std::getline(std::cin,s)){
        printf(is_huiwen_str(s)?"Yes\n":"No\n");
    }
    return 0;
}

